/**
 *
 */
package org.platform.core.event;

import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;

/**
 * @author mabb
 *
 */
public class BusEventPublisher implements ApplicationEventPublisherAware
{

	private ApplicationEventPublisher publisher;

	public void publish(BusEvent evt)
	{
		publisher.publishEvent(evt);
	}

	/*
	 * 搭建满足要求的事件框架
	 * 
	 * @see org.springframework.context.ApplicationEventPublisherAware#
	 * setApplicationEventPublisher
	 * (org.springframework.context.ApplicationEventPublisher)
	 */
	@Override
	public void setApplicationEventPublisher(ApplicationEventPublisher publisher)
	{
		this.publisher = publisher;
	}

}
